package org.dtrd.modules.service.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.service.entity.po.DtrdRlPackagePatient;
import java.util.Date;

/**
 * <p>
 * 患者和服务包关系表
 * </p>
 *
 * @author QR
 * @since 2021-12-16
 */
@Getter
@Setter
@ApiModel(value = "患者和服务包关系表列表信息", description = "患者和服务包关系表")
public class PackagePatientListInfo {

    private Integer dataId;

    @ApiModelProperty("患者id")
    private Integer patientId;

    @ApiModelProperty("服务包id")
    private Integer packageId;

    @ApiModelProperty("服务包状态, 0-待服务, 1-服务中")
    private Integer status;

    @ApiModelProperty("设置服务包的时间")
    private Date startTime;

    @ApiModelProperty("服务包结束时间, 开始时间+服务包周期")
    private Date endTime;



    public PackagePatientListInfo (DtrdRlPackagePatient po) {
        dataId = po.getDataId();
        patientId = po.getPatientId();
        packageId = po.getPackageId();
        status = po.getStatus();
        startTime = po.getStartTime();
        endTime = po.getEndTime();
    }
}
